package com.yunxin.core.application.command.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author zero°
 * @since 2023-06-07
 */
@Data
@Schema(description = "解除分配订单账户对象")
public class OperateAllocationOrderAccountCommand implements Serializable {

    /**
     * 订单id集合
     */
    @Schema(description = "订单id集合")
    @NotEmpty(message = "订单id集合不能为空")
    private List<Long> orderIds;

    /**
     * 分配账户id
     */
    /**
     * 分配账户id--解除分配时为null
     */
    @Schema(description = "分配账户id--解除分配时为null")
    private Long accountId;

    /**
     * 操作人
     */
    @Schema(hidden = true)
    private String operator;

}
